# 上传jar包
scp /Users/shaoc/svn/bigdata-study/out/artifacts/mr_worker_jar/mr-worker.jar student@47.101.204.23:/home/student/shaochong
# 执行命令
hadoop jar mr-worker.jar com.mr.works.WordCount /user/student/shaochong/input2/file1.txt /user/student/shaochong/output2
# 查看执行结果
hdfs dfs -cat /user/student/shaochong/output2/*
hadoop fs -cat /user/student/shaochong/output3/*
# 查看文件文本
hadoop fs -text /user/student/shaochong/output3/file1.txt
# ls
hadoop fs -ls /user/student/shaochong
# 删除目录
hadoop fs -rm -r /user/student/shaochong/output2
# 上传hdfs
hadoop fs -put local_file hdfs_file

hadoop jar mr-worker.jar com.mr.phone.MrPhone /user/student/shaochong/input/ /user/student/shaochong/output4
